import java.util.Scanner;

public class NumberAnalyzer {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个三位整数：");
        int number = scanner.nextInt();
        scanner.close();

        // 获取个位、十位、百位数值
        int onesPlace = number % 10;
        int tensPlace = (number / 10) % 10;
        int hundredsPlace = number / 100;

        // 获取最大数
        int maxDigit = Math.max(onesPlace, Math.max(tensPlace, hundredsPlace));

        // 输出结果
        System.out.println("数字" + number + "的情况如下：");
        System.out.println("个位数：" + onesPlace);
        System.out.println("十位数：" + tensPlace);
        System.out.println("百位数：" + hundredsPlace);
        System.out.println("最大数：" + maxDigit);
    }
}
